function MoreThanHalfNum_Solution(numbers)
{
    // write code here
    let rating = 0
    let res = 0
    for(let i of numbers){
      if(rating === 0){
        res = i
        rating++
      }else{
        if(i === res){
          rating++
        }else{
          rating--
        }
      }
    }
    return res
}
module.exports = {
    MoreThanHalfNum_Solution : MoreThanHalfNum_Solution
};